package com.googlecode.c4e.model;

import org.apache.maven.continuum.xmlrpc.project.ProjectSummary;

public class Project {

  private ProjectSummary summary;
  private String profileId;

  public Project(ProjectSummary summary, String profileId) {
    this.summary = summary;
    this.profileId = profileId;
  }

  public String getName() {
    return summary.getName();
  }

  public String getProfileId() {
    return profileId;
  }

  public int getId() {
    return summary.getId();
  }

  public int getState() {
    return summary.getState();
  }

  public String toString() {
    return summary.getName() + " (" + summary.getGroupId() + "/" + summary.getArtifactId() + "/" + summary.getVersion() + ")";
  }
}
